<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./compile.js"></script>
  <script src="./observe.js"></script>
  <script src="./mv.js"></script>
</head>
<body>
  <div id="app"></div>
  <script>
    var mv = new MV({
      el: document.getElementById('app'),
      template: '<div>我的名字是：{{name}}</div>',
      data: function () {
        return {
          name: 'xutao'
        }
      }
    })

    setTimeout(function () {
      mv.data.name = 'xt'
    }, 3000)
  </script>
</body>
</html>